package com.zzj.portalwebsite.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

public class article implements Serializable {
        private  Integer id;
        private String title;
        private String content;
        private String author;
        private LocalDateTime publish_time;
        private Integer status;

        private String newsimg;

    public article() {
    }

    public article(Integer id, String title, String content, String author, LocalDateTime publish_time, Integer status, String newsimg) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.author = author;
        this.publish_time = publish_time;
        this.status = status;

        this.newsimg = newsimg;
    }

    public LocalDateTime getPublish_time() {
        return publish_time;
    }

    public void setPublish_time(LocalDateTime publish_time) {
        this.publish_time = publish_time;
    }

    public String getNewsimg() {
        return newsimg;
    }

    public void setNewsimg(String newsimg) {
        this.newsimg = newsimg;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }



    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }



    public String getNews_img() {
        return newsimg;
    }

    public void setNews_img(String news_img) {
        this.newsimg = news_img;
    }

    @Override
    public String toString() {
        return "article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", author='" + author + '\'' +
                ", publish_time='" + publish_time + '\'' +
                ", status=" + status +
                ", news_img='" + newsimg + '\'' +
                '}';
    }
}
